package com.csun.cmny.provider.device.csun.camera.entity;

import com.csun.cmny.provider.model.constant.LifeConstant;
import com.csun.cmny.provider.model.domain.DmcCsunCameraOffCmdRecord;
import com.csun.cmny.provider.model.enums.device.DeviceStatusEnum;
import com.google.common.collect.Maps;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-11-06 13:28
 * @Description:
 */
@Data
public class CsunCameraData implements Serializable {

    private static final long serialVersionUID = 3293269518161015258L;

    /**
     * 设备Id
     */
    private Long deviceId;

    /**
     * 设备编号
     */
    private String deviceNo;

    /**
     * 所属机构
     */
    private Long groupId;

    /**
     * 状态, offline-离线，online-在线
     */
    private String status = DeviceStatusEnum.OFFLINE.getKey();

    /**
     * 画面中是否有人 in-有人 out-无人
     */
    private String homeMsg = LifeConstant.OUT_ROOM_STATUS;

    /**
     * 设备版本
     */
    private String deviceVersion;

    /**
     * 待下发的离线命令
     *
     * @key     msgType                     消息类型
     * @value   dmcCsunCameraOffCmdRecord   离线记录
     */
    private Map<String, DmcCsunCameraOffCmdRecord> cameraOffCmdRecordMap = Maps.newHashMap();
}
